package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShortCarService {
    /**
     * 查看用户的购物车
     */
    List<ShoppingCart> listByUserId();

    /**
     * 添加购物车
     *
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 清楚当前用户的购物车
     */
    void cleanShoppingCartByUserId();

    void sub(ShoppingCartDTO shoppingCartDTO);
}
